package com.example.library.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class BorrowInfo {

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date borrowDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date returnDeadline;

    public BorrowInfo() {
    }

    public BorrowInfo(Date borrowDate, Date returnDeadline) {
        this.borrowDate = borrowDate;
        this.returnDeadline = returnDeadline;
    }

    public Date getBorrowDate() {
        return borrowDate;
    }

    public void setBorrowDate(Date borrowDate) {
        this.borrowDate = borrowDate;
    }

    public Date getReturnDeadline() {
        return returnDeadline;
    }

    public void setReturnDeadline(Date returnDeadline) {
        this.returnDeadline = returnDeadline;
    }
}
